<?php
class RepertoireController extends Zend_Controller_Action
{   
 
     public function listerrepertoireAction()
    {
    	$vips = new Table_Vips();
        $lettre = $this->getParam('lettre');
		$resu = $vips -> getPremiereLettreTousVip();
		if($lettre!=null)
		$resu2=$vips->getVipsByLettre($lettre);
		else {
			$resu2=null;
		}
		
		$this -> view -> listerrepertoire = array('lettre' => $resu,'vips' => $resu2);
    }
	
	public function detailsvipAction() {
		$numPer = $this -> getParam('idVip');
		$this -> view -> detailsvip = $numPer;
	}
	
	public function listervipAction()
	{
		$vips = new Table_Vips();
        $lettre = $this->getParam('lettre');
		$resu2=$vips->getVipsByLettre($lettre);
		
		$this -> view -> listerrepertoire =$resu2;
	}
}
?>